include<iostream>
using nmaespace std;
int main(){
    int q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l;
    cin>>q>>w>>e>>r>>t>>y>>u>>i>>o>>p>>a>>s>>d>>f>>g>>h>>j>>k>>l;
    cout<<'1'<<endl<<'0'<<endl<<'9'<<endl;

}